app.service("userService",function($http){
	this.login=function(datas){
		return $http.post("/user/login",datas);
	}
	this.register=function(datas){
		return $http.post("/user/register",datas);
	}
	this.checkUserName=function(username){
		//return $http.post("checkname.user",datas);
		return $http.get("checkname.user?username="+username);
	}
	this.checkUserStatus=function(){
		return $http.get("/user/checkstatus");
	}
});